package net.betou.cms.dao.main;

import java.util.List;

import net.betou.cms.entity.main.CmsModel;
import net.betou.common.hibernate3.Updater;

public interface CmsModelDao{
	public List< CmsModel > getList( boolean containDisabled, Boolean hasContent );
	
	public List< CmsModel > getList( String searchValue, String searchProperty, String orderProperty, String orderDirection, boolean containDisabled, Boolean hasContent );

	public CmsModel getDefModel( );

	public CmsModel findById( Integer id );

	public CmsModel findByPath( String path );

	public CmsModel save( CmsModel bean );

	public CmsModel updateByUpdater( Updater< CmsModel > updater );

	public CmsModel deleteById( Integer id );
}